package com.cskaoyan.javase.oop3._2inner._3local._6advantage;

/**
 * @description: 使用内部类来实现多继承
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

public class Demo {
    public static void main(String[] args) {
        ASon aSon = new Demo().new ASon();
    }

    class ASon extends A {
    }

    class BSon extends B {
    }

    class CSon extends C {
    }

    class DSon extends D {
    }
}

class A {
}

class B {
}

class C {
}

class D {
}